package schema

type UserTotal struct {
	Id         int64  `gorm:"column:id;type:bigint(20) unsigned;primary_key;AUTO_INCREMENT;comment:用户id" json:"id"`
	PhoneCode  string `gorm:"column:phone_code;type:tinyint(2) unsigned;default:0;comment:手机区号" json:"phone_code"`
	Phone      string `gorm:"column:phone;type:char(11);comment:手机号" json:"phone"`
	Email      string `gorm:"column:email;type:varchar(100);comment:邮箱" json:"email"`
	Ip         string `gorm:"column:ip;type:varchar(32);comment:ip地址" json:"ip"`
	Account    string `gorm:"column:account;type:varchar(100);comment:玩家平台账号" json:"account"`
	InviteCode string `gorm:"column:invite_code;type:varchar(10);comment:用户可分享给别人注册的邀请码" json:"invite_code"`
}

func (u UserTotal) TableName() string {
	return "UserTotal"
}
